package com.blueocean_health.care.management.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.blueocean_health.care.management.domain.base.Power;
import com.blueocean_health.care.management.domain.vo.ModuleVo;
import com.blueocean_health.care.management.util.MyMapper;

public interface PowerMapper extends MyMapper<Power> {

	/**
	 * 获得对应组织的权限清单
	 * @param paramsMap
	 * @return
	 */
	List<ModuleVo> findPowerByOrgIdAndModules(Map<String, String> paramsMap);

	/**
	 * 获取运营端所有权限清单
	 * @return
	 */
	List<ModuleVo> findAllProjectPower();
	
	/**
	 * 获得组织对应模块的所有权限清单
	 * @param paramsMap
	 * @return
	 */
	List<ModuleVo> findPowerByOrg(Map<String, String> paramsMap);

	/**
	 * 根据类型查询权限；类型：1:泰心端  2:项目端
	* @Title: selectAllByType
	* @param type
	* @return
	* List<Power>
	* @version V1.0
	* @throws
	 */
	List<Power> selectAllByType(@Param("type")Integer type);
}